@extends('layouts.app')
@section('content')
    <heading>作品设置</heading>
    <card>
        {{--        @include('resources._errors')--}}
        @component('resources.repository._form',$repository->toArray()+['action'=>route('repositories.update',['repository'=>$repository]),'isUpdate'=>true])
        @endcomponent
        {{--<repository-form action="{{route('repositories.update',['repository'=>$repository])}}" :is-update="true"--}}
        {{--title="{{$repository->title}}" :type="{{$repository->type}}"--}}
        {{--introduction="{{$repository->introduction}}" url="{{$repository->url}}"--}}
        {{--:tags="{{$repository->tags?json_encode($repository->tags):'[]'}}"--}}
        {{--submit-button-text="修改"></repository-form>--}}
    </card>
    <card>
        <card-block>
            <tig-form action="{{route('repositories.destroy',['repository'=>$repository])}}" :is-delete="true">
                <button type="submit" class="btn btn-default btn-danger">删除作品</button>
            </tig-form>

        </card-block>
    </card>
@endsection